package com.imagecollector.controller;


import com.imagecollector.common.R;
import com.imagecollector.domain.dto.PictureSearchDTO;
import com.imagecollector.service.IPictureService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 图片数据表 前端控制器
 * </p>
 *
 * @author wrf
 * @since 2024-07-31
 */
@Api(tags = "图片相关接口")
@RestController
@RequestMapping("admin/picture")
public class PictureController {
    @Autowired
    private IPictureService pictureService;
    /**
     * 根据条件分页查找用户
     */
    @PutMapping("/pageQueryPictures")
    @ApiOperation("根据条件分页查找图片")
    public R pageQueryPictures(@ApiParam("用户查询条件传输实体")@RequestBody PictureSearchDTO requestParam){
        return pictureService.pageQueryPictures(requestParam);
    }
}
